HELP. With lib tablelib.php

HELP. With lib tablelib.php

by Андрей Тюфтин -
Number of replies: 19

I need help with the library tablelib.php. No way to fix it. Please help or tell me how to use it to make a conclusion from the database. Attached the file that until I had to do..need help..

Average of ratings: -
In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -


Hello Андрей (Andrew),

I am not quite sure, but this link may be helpful/or not smile

http://docs.moodle.org/dev/lib/tablelib.php

cheers,

Dawn


Average of ratings: Useful (1)
In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -
Oh, at least someone answered!) Thanks! but I saw it and I was almost exactly like it did not help..(
In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -

...I answered because the plugin sounds interesting....love to hear a bit more about that.  I think you basically need to be using the same language/code/variations...that have gone before/built/constructed- on what is already there-I know this can happen say with themes for example ....so, I don't mean just php...but I am talking about the skeleton/possibly the schema/schemata/template-oh do forgive me I try with all the computer science/programming language, but it is not my specialist subject....however...I am sure you can understand what I mean.

So, check your ideas marry up with the table design for example and other stuff in the first instance maybe...phew sore head now! ;0)

There are clever techies here-I am sure you will get better help from them.

Dawn

Average of ratings: Useful (1)
In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

not really speak English, but in many ways I understand) nice to know that you are interested) on the advice is little understood from the translation, but still thank you ! ;) I will wait for these clever techies..

In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -

cool.

Understand, about not speaking English. Have chosen words that I think we may share an understanding.

What is this?

https://moodle.org/mod/forum/discuss.php?d=261716

What will it do?

As I said, would love to know more. The techies might need that info too you see.

Cheers,

Dawn


Average of ratings: Useful (1)
In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

ok) this module will store users publications, users can add their publication, to view other people, if it is available, to edit the entries. But, the main thing is to be able reporting on filters. in short..now I need to make these publications are displayed in the table. That's why I decided to specify the question)

I answered your question?)

In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -
In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

Yes, this is it. But realised, as I understand it, using the module database. I was offered to go this route is not difficult, but for a long time. And I need a separate plugin...

In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -

I think I understand. It is the issue of a separate plugin then, by the sounds of your last post, oh do bear with me-I am trying to use simple English about a topic I am also learning about :0) 

Can I suggest you see this post too: https://moodle.org/mod/forum/discuss.php?d=261769 

it is about the process for releasing a new plugin...if you manage to get it up and running-although IMO I think something like this would be better off in core.

While my earlier questioning may have been a pain...it really did have its purpose, I hope you understand that now.

Additionally, there is a system in moodle.org (here) where you can set up a tracker item....I am trying very hard to choose my words carefully to enable a shared meaning with you-apologies if you are not able to access my language-please say :0)

here is the link for the tracker docs:  http://docs.moodle.org/dev/Tracker_guide

Dawn


 

In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

I think I understand you...) provided by you In the post provides the procedure for the release of the plugin. What I think happens with every developed a new plug-in. To me this far. And I think it takes a lot of time that I have, because the work should be submitted...Now, I hope you understood me ;)


if you answered no, tell me)

In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -

Андрей, hi

how about you break this down for me in point form? That will help me to gain a further understanding of what the key issues are for you here. In other words, in providing key points, I will be able to create/put together the big picture of what your post is about.

hope helpful

Dawn

In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

hi, Dawn.

Soooo, I hope I understood you correctly) is Now the key for me is to display a table of publications. Since I took as a basis the module - Glossary, I am having difficulty. With tablelib.php I didn't understand anything. Try using $table = new html_table(); Well, not much to say, here's what I have so far turned out..



hat is the conclusion separately for each entry a little table. and the hat in view.php. Don't even know how to set a static width of the table)

the code from the template format:

$table = new html_table(); $ikonki = public_print_entry_lower_section($course, $cm, $public, $entry, $mode, $hook, $printicons, $aliases); $row = array (); $row[] = $entry->concept; $row[] = get_string('authors', 'public'); $row[] = $entry->phouse; $row[] = $entry->year; $row[] = $entry->stranic; $row[] = $entry->typep; $row[] = $entry->definition; $row[] = $ikonki; $table->data[] = $row; echo html_writer::table($table);


and the code of hats view.php


$table = new html_table();

    $table->head  = array (get_string('concept', 'public'), get_string('authors', 'public'), get_string('phouse', 'public'), get_string('year', 'public'), get_string('stranic', 'public'),  get_string('typep', 'public'), get_string('definition', 'public'));

    $table->align = array ("", "left", "left");

echo html_writer::table($table);


now all sad(

In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

at the moment I would have been enough to know how to set certain sizes for each column separately..

In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -

Андрей, hi

your posts are now in the G Dev section. It really does look like it would be a very useful plugin for a number of subject areas-to be honest, moodle.org could do with this to organise a selection of themes that eminate from forums. Hope you manage to get this all sorted.

Dawn

In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

And you can link where?) 


Thank you for your attention and for your help!)

In reply to Андрей Тюфтин

Re: HELP. With lib tablelib.php

by dawn alderson -

  мои извинения вас  smile

the link:

https://moodle.org/mod/forum/view.php?id=55

cheers,

Dawn

In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Tatiana Benitez -

the forum don´t  exist 

In reply to Tatiana Benitez

Re: HELP. With lib tablelib.php

by dawn alderson -

for the specifics, try this Tatiana:

https://moodle.org/mod/forum/discuss.php?d=261673

I just posted the last link as I thought Андрей ideas/layout were enough...for a response from someone in Dev corner...I don't think Андрей needs to provide anymore justification-but good that you posted-I could be wrong.

Cheers,

Dawn

In reply to dawn alderson

Re: HELP. With lib tablelib.php

by Андрей Тюфтин -

I was able to conclude with tablelib.php) but now is not working filters and search, now I will deal. Who can suggest adding a filter to the table headers, write..need filters by title, year of publication type of publication, so far..

I want to make as well as the view of users admin/user.php