Dont even know what to name the title. Im trying to figure out, how all this works and what does all this mean: [B]$oView->getArticleList()[/B]
$ = variable?
() = function?
-> = ?
how do i find out, what oView and getArticleList contains?
how do i get the info from getCategory ? at times i have noticed them using :: within something, what is that?
public function getArticleList()
{
return $this->_aArticleList;
}
which doesnt tell me much about, whats within that function?
it doesnt answer:
$ = variable?
() = function?
-> = ?
and how do i know, what i need to have infront of it, before i can get the info within that function?
Search::getArticleList it found, when i seached, so what is “::” ?
@msslovi0
I dont want to learn a whole(+ smarty…) programming language, just because i need a few simple things on my website, but thanks for the info(: tho.
So far, no one has shown any interest in getting a job in here.
@vanilla thunder
I use 4.6.5 which is the newest supported for my module
Edit: back on topic:
It’s used in object oriented code and can refer to a method or property of an object.
“class person {
public $name;
};
$john = new person();
$john->name = ‘John’;
echo $john->name;
<WhiteVAL> Return: John”
i manages to find this, but it still doesnt tell me, where i find out, what getArticleList etc. contains of info
and you don’t need to learn the whole php and smarty, but you can use the toturials and manual to look-up the stuff you don’t know. But nevertheless you should learn some basics, it would help you to understand OXID faster.
[QUOTE=gnomic;116010]I dont want to learn a whole(+ smarty…) programming language, just because i need a few simple things on my website, but thanks for the info(: tho.[/QUOTE]
Well, currently you’re standing in front of a car, don’t know how to name those four round black things that touch the ground and wonder how you can make them turn. Honestly, you should get some basics before driving the Indy 500.
@msslovi0 , agree, and thats what im doing, im looking at some the stuff, thats posted.
Just wish oxid was more known, so it was actually posible to buy people to make small jobs, as the things i have in mind.
I figured out, that if we look in views/alist.php we have a lot of functions like getArticleList() but it gets it info from aArticleList:
“return $this->_aArticleList;” where do i find _aArticleList? <- this is what i have spend a lot of time, trying to figure out. its in here: http://www.8tiny.com/source/oxideshop/views/oxubase.php.source.html#l335
Vendor list object. @var object
must be posible to get more info out of that. Will learning some basic stuff about php, teach me where this is located?
there is a function giveLuggage() {
return $this->_contentOfTheLuggageSpace;
}
What do you expect, where comes the the stuff in the luggage space from? The car doens not knit the spare tire and other stuff by itself. So… obviously someone has put some luggage in to the car.
You have the var name, so you can search in the php class for functions, which put something into this var
This is all the files in the oxid installation, that contains _aArticleList:
\views\alist.php
\views\manufacturerlist.php
\views\oxubase.php
\views\recommlist.php
\views\search.php
\views\start.php
\views ag.php
\views\vendorlist.php
and they are all just getting there information from it, so im not sure, where its being made? tryed searching thought my database and i didnt find anything called that aswell.
public function getArticleList()
{
if ( $this->_aArticleList === null ) {
if ( /*$this->_isActCategory() &&*/ ( $oCategory = $this->getActCategory() ) ) {
$aArticleList = $this->_loadArticles( $oCategory );
if ( count( $aArticleList ) ) {
$this->_aArticleList = $aArticleList;
}
}
}
return $this->_aArticleList;
}
I looked at it, as if it never got into the first if statement, since i expected _aArticleList to contain information and therefore not be null. So its being filled with information from: $this->_loadArticles( $oCategory ); which i now have to look into… think this is correct.