I need to do a multiedit page. Now it's written like node_admin_nodes. But what is more perfomance in this situation: to pass all necessary values through form ('#type' => hidden' or '#type' => value), or make a db_query?
In the second case another question: if I need to do a lot of db_queries for each item id or take all of them and then filter item, which I need?
In node.module the second of three (which I have described) method used.
PS Maybe, something is more effective... I ned to select from 1 to 150 elements from 1000 - 1500 elements table.
I need to do a multiedit page. Now it's written like node_admin_nodes. But what is more perfomance in this situation: to pass all necessary values through form ('#type' => hidden' or '#type' => value), or make a db_query?
In the second case another question: if I need to do a lot of db_queries for each item id or take all of them and then filter item, which I need?
In node.module the second of three (which I have described) method used.
PS Maybe, something is more effective... I ned to select from 1 to 150 elements from 1000 - 1500 elements table.
Sorry, but I'm just getting started with php (I'm an old C programmer), and I can't figure out what's up with the # in front of all the API variable names. I've searched high and low, and I can't find a single word on this in the php manual. Can someone help me out here?
I found Views module is very powerful. I used it as a general purpose filter. Last time, I tried the export function of the module, and it generated some bunch of code.
Can we use the exported code directly in our scripts without importing it? So we can modify the view directly in our code.
I mean something like this: